cmake_minimum_required(VERSION 3.16)
project(consoleDemo)

set(CMAKE_CXX_STANDARD 14)

include_directories(include)
include_directories(src)


link_directories(/usr/local/workspace/CH-HCNetSDKV6.1.4.17_build20200331_Linux64/consoleDemo/linux64/lib) #lib文件夹位置
link_directories(/usr/local/workspace/CH-HCNetSDKV6.1.4.17_build20200331_Linux64/consoleDemo/linux64/lib/HCNetSDKCom) #lib文件夹位置





link_libraries(AudioRender)
link_libraries(crypto)
link_libraries(HCCore)
link_libraries(hcnetsdk)
link_libraries(hpr)
link_libraries(NPQos)
#link_libraries(openal)
link_libraries(PlayCtrl)
link_libraries(ssl)
link_libraries(SuperRender)
link_libraries(z)

#HCNetSDKCom
link_libraries(analyzedata)
link_libraries(HCAlarm)
link_libraries(HCCoreDevCfg)
link_libraries(HCDisplay)
link_libraries(HCGeneralCfgMgr)
link_libraries(HCIndustry)
link_libraries(HCPlayBack)
link_libraries(HCPreview)
link_libraries(HCVoiceTalk)
link_libraries(iconv2)
link_libraries(StreamTransClient)
link_libraries(SystemTransform)



add_executable(consoleDemo
        include/HCNetSDK.h
        src/Alarm.cpp
        src/Alarm.h
        src/CapPicture.cpp
        src/CapPicture.h
        src/ConfigParams.cpp
        src/ConfigParams.h
        src/consoleMain.cpp
        src/GetStream.cpp
        src/GetStream.h
        src/playback.cpp
        src/playback.h
        src/public.h
        src/tool.cpp
        src/tool.h
        src/Voice.cpp
        src/Voice.h src/HKMain.cpp src/HKMain.h)


find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(consoleDemo ${OpenCV_LIBS} -lpthread -lm)
